SureCart\Models\Checkout A

Total Complexity 69
Dependencies 8
Dependents 8
Total lines 516
Lines of code 252
Logical lines of code 114
Comment lines 174
Methods 29
Properties 2

Methods 29

Method Rating Maintainability Complexity Lines of code
declineUpsell()
S
50 6 29
offerBump()
S
51 6 26
offerUpsell()
S
51 6 26
getHumanDiscountAttribute()
S
61 5 12
cancel()
S
52 4 25
manuallyPay()
S
52 4 25
getHumanDiscountWithDurationAttribute()
S
57 4 16
getLineItemsCountAttribute()
S
62 3 12
getConvertedTotalAmountAttribute()
S
71 3 6
getBumpDisplayAmountAttribute()
S
77 2 3
getHasRecurringAttribute()
S
66 2 9
setWriteAttributes()
S
70 2 6
getBillingAddressDisplayAttribute()
S
71 2 6
getDiscountDisplayAmountAttribute()
S
77 2 3
getSubtotalDisplayAmountAttribute()
S
77 2 3
getFullDisplayAmountAttribute()
S
77 2 3
getPaidAtDateAttribute()
S
78 2 3
getShippingAddressRequiredAttribute()
S
78 1 3
__construct()
S
76 1 4
setLineItemsAttribute()
S
79 1 3
getIPAddress()
S
78 1 3
update()
S
77 1 4
create()
S
77 1 4
setCurrentUpsellAttribute()
S
79 1 3
setUpsellFunnelAttribute()
S
79 1 3
getIsInstallmentAttribute()
S
80 1 3
getTotalDisplayAmountAttribute()
S
79 1 3
getTotalScratchDisplayAmountAttribute()
S
78 1 3
setRecommendedBumpsAttribute()
S
79 1 3